import request from '@/utils/request'

export function addCostType(data) {
  return request({
    url: 'api/CostType/Create',
    method: 'post',
    data
  })
}

export function updCostType(data) {
  return request({
    url: 'api/CostType/Update',
    method: 'post',
    data
  })
}

export function delCostType(id) {
  return request({
    url: 'api/CostType/Delete',
    method: 'post',
    params: {
      id
    }
  })
}

export function getAllCostType(data) {
  return request({
    url: 'api/CostType/GetAll',
    method: 'post',
    data
  })
}